<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/template/common/header.jsp"%>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);"
		action="${base }/article!list.action" method="post" rel="pagerForm"
		id="productListForm">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>搜索关键词<input type="text" name="article.title"
						value="${artile.title }" alt="请输入关键词 " size="30" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${base }/article!add.action"
				target="navTab" rel="aritcle-add"><span>添加文章</span></a></li>
			<li><a class="icon"
				href="${base }/article!commentList.action?article.id={article}"
				target="dialog" rel="comment-list"><span>查看评论</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="${base}/article!deletes.action"
				rel="articleIds" title="是否批量删除？" target="selectedTodo"><span>批量删除</span>
			</a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="articleIds"
					class="checkboxCtrl"></th>
				<th width="80">标题</th>
				<th width="20">关键字</th>
				<th width="40">描述</th>
				<th width="40">来源</th>
				<th width="40">类型</th>
				<th width="20">创建时间</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${articles }" var="article">
				<tr target="article" rel="${article.id}">
					<td><input name="articleIds" value="${article.id }"
						type="checkbox"></td>
					<td>${article.title }</td>
					<td>${article.keywords}</td>
					<td>${article.description}</td>
					<td>${article.source}</td>
					<td><c:choose>
							<c:when test="${article.type eq 1 }">文章</c:when>
							<c:when test="${article.type eq 2 }">站点地图</c:when>
						</c:choose></td>
					<td><fmt:formatDate value="${article.createDate }"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td><a title="${article.title }" rel="article_edit"
						target="navTab"
						href="${base }/article!edit.action?article.id=${article.id}"
						class="btnEdit">编辑</a> <a title="确定要删除该文章?" target="ajaxTodo"
						href="${base }/article!delete.action?article.id=${article.id}"
						class="btnDel">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<cy:pagination pageBean="${pager }"
	pageUrl="${base }/article!list.action">
	<%@include file="/WEB-INF/template/common/pagination.jsp"%>
</cy:pagination>